package com.huatai.datacenter.entity.subject;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author gusiyi
 * @version 1.0
 * @className SubjectDirectoryEntity
 * @description 描述：
 * @date 2023/6/6 10:46
 */
@Data
@TableName("tb_subject_directory")
@ApiModel(value = "主题目录实体类",description = "主题目录实体类")
public class SubjectDirectoryEntity {

	@TableId(value = "id",type = IdType.ASSIGN_ID)
	@ApiModelProperty("主题目录id")
	@NotNull(message = "修改时id不能为空")
	private Long id;

	@ApiModelProperty("主题目录名称")
	private String subjectDirectoryName;

	@ApiModelProperty("主题目录类型编码")
	private Integer subjectDirectoryTypeNum;

	@ApiModelProperty("主题目录类型名称")
	private String subjectDirectoryTypeName;

	@ApiModelProperty("数据提供方")
	private String dataProvider;

	@ApiModelProperty("联系方式")
	private String phoneNumber;

	@ApiModelProperty("创建人id")
	private Long createUserid;

	@TableField(fill = FieldFill.INSERT)
	@ApiModelProperty("创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime createTime;

	@ApiModelProperty("更新人id")
	private Long updateUserid;

	@ApiModelProperty("更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime updateTime;

	@ApiModelProperty("删除标志(默认为0表示未删除)")
	@TableField(fill = FieldFill.INSERT)
	private Boolean deleted = Boolean.FALSE;

	@TableField(exist = false)
	@ApiModelProperty("当前页码")
	private Integer pageIndex;

	@TableField(exist = false)
	@ApiModelProperty("显示条数")
	private Integer pageSize;

	@TableField(value = "typeContent")
	private Integer typeContent;

}
